home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 29 / CDT29.iso / e-Mail / WorldClient Pro 2.2.3 / wcsetup.exe / WEBHELP.CAB / WebHelp$JavaScriptAccess.class (.txt) < prev   
Encoding:
Java Class File  |  1999-10-21  |  1.3 KB  |  36 lines

  1. import java.applet.Applet;
  2. import netscape.javascript.JSObject;
  3.  
  4. class WebHelp$JavaScriptAccess {
  5.    Applet m_a;
  6.    // $FF: synthetic field
  7.    final WebHelp this$0;
  8.  
  9.    WebHelp$JavaScriptAccess(WebHelp var1, Applet var2) {
  10.       (this.this$0 = var1).getClass();
  11.       this.m_a = var2;
  12.    }
  13.  
  14.    public int GetHeight() {
  15.       try {
  16.          JSObject var1 = JSObject.getWindow(this.m_a);
  17.          Double var2 = Double.valueOf(var1.eval("getheight()").toString());
  18.          return var2.intValue();
  19.       } catch (Exception var3) {
  20.          System.out.println("Exception Caught: " + ((Throwable)var3).toString());
  21.          return 0;
  22.       }
  23.    }
  24.  
  25.    public int GetWidth() {
  26.       try {
  27.          JSObject var1 = JSObject.getWindow(this.m_a);
  28.          Double var2 = Double.valueOf(var1.eval("getwidth()").toString());
  29.          return var2.intValue();
  30.       } catch (Exception var3) {
  31.          System.out.println("Exception Caught: " + ((Throwable)var3).toString());
  32.          return 0;
  33.       }
  34.    }
  35. }
  36.